Skip to content

Add nile-elements w/ npm auto-update - #2220

Merged
MattIPv4 merged 3 commits into
cdnjs:masterfrom
biratdatta:add-nile-elements
Nov 18, 2026
Merged

MattIPv4 merged 3 commits into
cdnjs:masterfrom
biratdatta:add-nile-elements

Conversation

@biratdatta

Copy link
Copy Markdown
Contributor

Adds nile-elements, a library of Lit-based web components from the Nile design system by Aquera.

Auto-update: npm, target @aquera/nile-elements. The file map copies dist/index.js, a self-contained, already-minified ES module bundle (about 4.3 MB) that registers every nile-* custom element. It matches the build served from the Aquera CDN link above. JS minification is turned off because the bundle is already minified.

Usage once live:

<script type="module" src="https://cdnjs.cloudflare.com/ajax/libs/nile-elements/2.0.21/index.js"></script>

@MattIPv4 MattIPv4 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the CI error notes, your JSON file for the package is missing the required repository information.

@biratdatta

Copy link
Copy Markdown
Contributor Author

Hey @MattIPv4 Thanks for the review! The source repository for nile-elements is private, so there isn’t a public Git repo to reference. The package is published publicly on npm under the MIT license (@aquera/nile-elements), which is what the auto-update targets.

Is it acceptable to omit the repository or point it to the npm package, or does cdnjs require a public Git repo?

@MattIPv4

Copy link
Copy Markdown
Member

You can try setting it to the NPM package, I'm not sure whether the CI will accept it though. It seems a bit odd to have an OSS-licensed package published without a public repo.

@biratdatta

Copy link
Copy Markdown
Contributor Author

Pushed the repository field pointing to the npm package. Could you approve the workflow run so CI can check it?

Regarding the public repo: we're keeping our repository private for company use cases.

@MattIPv4

Copy link
Copy Markdown
Member

@niklhut any logic in the auto-update process (Algolia indexing where we fetch repo information) that'll be unhappy about this fake repository set to NPM, or will it just gracefully ignore it?

@niklhut

niklhut commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

It'll gracefully ignore it. We already have about 40 packages with non-GitHub repository URLs. undraw-ui (gitee), 18x (atomgit) and scion (gitlab) auto-update from npm and are current on cdnjs. This would be the first one pointing at npmjs.com, but the code treats it the same way. The only effect is no star count for search ranking.

@MattIPv4
MattIPv4 merged commit a2a604b into cdnjs:master Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants